From: TerraAr Date: Fri, 18 Dec 2020 17:54:04 +0000 (+0000) Subject: shell-util: Use early-return in shell_util_get_week_start() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~450 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d75b64b88f348c43c52cc7a94b70cfedc2154852;p=gnome-shell.git shell-util: Use early-return in shell_util_get_week_start() Cleanup shell_util_get_week_start() a little bit and use an early-return instead of setting the week_start variable to 0. Part-of: --- diff --git a/src/shell-util.c b/src/shell-util.c index ab8046a5a..0bc3f4d65 100644 --- a/src/shell-util.c +++ b/src/shell-util.c @@ -128,7 +128,7 @@ shell_util_get_week_start (void) { g_warning ("Whoever translated calendar:week_start:0 for GTK+ " "did so wrongly.\n"); - week_start = 0; + return 0; } #endif